package com.hundsun.yr.universal.p2p.bean.enums.base;

import java.util.ArrayList;

/**
 * 
 * @author tonglj 通用枚举类 可添加拓展属性
 */
public abstract class LabelEnum extends Enum {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String lable;
	protected static String title;

	private String paramName;

	protected static ArrayList<LabelEnum> mList = new ArrayList<LabelEnum>();

	protected LabelEnum(String name, String lable,String paramName) {
		super(name);
		this.lable = lable;
		this.paramName = paramName;
	}

	public String getLable() {
		return lable;
	}

	public void setLable(String lable) {
		this.lable = lable;
	}

	public static String getTitle() {
		return title;
	}

	/**
	 * 反射调用函数
	 * 
	 * @return
	 */
	public String getPickerViewText() {
		// 这里还可以判断文字超长截断再提供显示
		return lable;
	}

	public String getParamName() {
		return paramName;
	}

}
